<template>
  <div id="app">
    <DomDirective v-logs="loading" />
    <img alt="Vue logo" src="./assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <div @click="changeStatus">切换状态</div>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import DomDirective from './components/directiveDom.vue'

export default {
  name: 'App',
  components: {
    HelloWorld,
    DomDirective
  },
  data() {
    return {
      loading: false
    }
  },
  methods: {
    changeStatus() {
      this.loading = !this.loading
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.loadingcss {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 100;
}
</style>
